﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using BoarAccess;

namespace BoarDateRestore
{
    class Program
    {

        static void Main(string[] args)
        {
            string arg;
            string searchPattern;

            if (args == null || args.Length <= 0)
            {
                Console.Write("Please enter your local boar repository's root folder: ");
                arg = Console.ReadLine();
            }
            else
            {
                arg = args[0];
            }

            if (args == null || args.Length <= 1)
            {
                Console.Write("Please enter your file search pattern (e.g. *.avi): ");
                searchPattern = Console.ReadLine();
            }
            else
            {
                searchPattern = args[1];
            }

            Program p = new Program();

            string infoFilename = arg + "\\.boar\\info";

            Console.WriteLine("Retrieving repository information from " + infoFilename);
            
            BoarAccess.LocalSession boarSession = new LocalSession(infoFilename, searchPattern);

            

            Console.ReadLine();
        }
    }
}
